# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class SnapshotPolicy(object):

    def __init__(self, id=None, name=None, pin=None, interval=None, effectiveTime=None, lastTriggerTime=None, nextTriggerTime=None, snapshotLifecycle=None, contactInfo=None, createTime=None, updateTime=None, status=None, diskCount=None):
        """
        :param id: (Optional) 策略id
        :param name: (Optional) 策略名称
        :param pin: (Optional) 用户pin
        :param interval: (Optional) 策略执行间隔，单位:秒
        :param effectiveTime: (Optional) 策略生效时间。格式`YYYY-MM-DDTHH:mm:ss+xx:xx`。如`2020-02-02T20:02:00+08:00`
        :param lastTriggerTime: (Optional) 策略上次执行时间。格式`YYYY-MM-DDTHH:mm:ss+xx:xx`。如`2020-02-02T20:02:00+08:00`
        :param nextTriggerTime: (Optional) 策略下次执行时间。格式`YYYY-MM-DDTHH:mm:ss+xx:xx`。如`2020-02-02T20:02:00+08:00`
        :param snapshotLifecycle: (Optional) 快照保留时间。单位:秒。0：永久保留
        :param contactInfo: (Optional) 联系人信息
        :param createTime: (Optional) 策略下次执行时间。格式`YYYY-MM-DDTHH:mm:ss+xx:xx`。如`2020-02-02T20:02:00+08:00`
        :param updateTime: (Optional) 策略下次执行时间。格式`YYYY-MM-DDTHH:mm:ss+xx:xx`。如`2020-02-02T20:02:00+08:00`
        :param status: (Optional) 策略状态。1：启用 2：禁用
        :param diskCount: (Optional) 策略绑定的disk数量
        """

        self.id = id
        self.name = name
        self.pin = pin
        self.interval = interval
        self.effectiveTime = effectiveTime
        self.lastTriggerTime = lastTriggerTime
        self.nextTriggerTime = nextTriggerTime
        self.snapshotLifecycle = snapshotLifecycle
        self.contactInfo = contactInfo
        self.createTime = createTime
        self.updateTime = updateTime
        self.status = status
        self.diskCount = diskCount
